package com.qk.management.mapper;

import com.qk.domian.user.UserDO;
import com.qk.dto.user.UserDTO;
import com.qk.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author:Shuna
 * @Date: 2025/10/07 18:16
 * @Description:
 */
@Mapper
public interface UserMapper {
    List<UserDO> selectByPage(UserDTO userDTO);

    void insert(User user);

    void update(User user);

    List<User> selectByRoleLabel(String roleLabel);

    void deleteBatch(List<Integer> ids);

    @Select("select * from user where id = #{id}")
    User selectById(Integer id);

    @Select("select * from user where username = #{username}")
    User selectByUsername(String username);
}
